package com.example.demo.pojo.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改网签项目配置
 *
 * @author 叮当猫的百宝箱
 * @since 1.0
 */
@Data
public class UpdateOnlineProjectRequest implements Serializable {

    private static final long serialVersionUID = 1807571033535634195L;

    /**
     * 关联的网签配置ID
     */
    @Schema(description = "网签配置ID")
    @NotNull(message = "网签配置ID不能为空!")
    private Long onlineId;

    /**
     * 网签中心项目ID
     */
    @NotBlank(message = "网签中心项目ID不能为空")
    @Length(min = 1, max = 4, message = "网签项目ID长度为1-4位")
    @Schema(description = "网签中心项目ID")
    private String onlineProjectId;


    /**
     * 网签中心项目名称
     */
    @NotBlank(message = "网签中心项目名称不能为空")
    @Schema(description = "网签中心项目名称")
    private String onlineProjectName;

}
